//
//  HomeViewController.m
//  YTT-IOS-CommonFramework
//
//  Created by aron on 2017/2/23.
//  Copyright © 2017年 aron. All rights reserved.
//

#import "HomeViewController.h"
#import "BusinessInterface.h"

@interface HomeViewController ()

@end

@implementation HomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"首页";
    
    @ytt_weakify(self)
    [self addActionWithName:@"Get网络测试" callback:^{
        @ytt_strongify(self)
        
       [INTERFACER requestGetDatasWithPageIndex:0 PageSize:100 succeedBlock:^(FLInterfaceBase *interface, NSDictionary *responseHeader, id responseObject) {
            BMLog(@"====responseObject:%@", responseObject);
        } failedBlock:^(FLInterfaceBase *interface, NSDictionary *responseHeader, NSError *error) {
            BMLog(@"====error:%@", error);
        }];
    }];
    
    [self addActionWithName:@"Post网络测试" callback:^{
        @ytt_strongify(self)
        
        [INTERFACER requestPostDatasWithPageIndex:0 PageSize:100 succeedBlock:^(FLInterfaceBase *interface, NSDictionary *responseHeader, id responseObject) {
            BMLog(@"====responseObject:%@", responseObject);
        } failedBlock:^(FLInterfaceBase *interface, NSDictionary *responseHeader, NSError *error) {
            BMLog(@"====error:%@", error);
        }];
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
